//
//  UIViewExtention.h
//  ocdemo
//
//  Created by JieNing.Zhang on 2023/4/4.
//  Copyright © 2023 zjn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extention)

@property (nonatomic, assign) CGSize size;
 
@property (nonatomic,assign)  CGFloat x;
 
@property  (nonatomic,assign) CGFloat y;
 
@property (nonatomic, assign) CGFloat top;
 
@property (nonatomic, assign) CGFloat bottom;
 
@property (nonatomic, assign) CGFloat left;
 
@property (nonatomic, assign) CGFloat right;
 
@property (nonatomic, assign) CGFloat centerX;
 
@property (nonatomic, assign) CGFloat centerY;
 
@property (nonatomic, assign) CGFloat width;
 
@property (nonatomic, assign) CGFloat height;

@property (nonatomic, assign) CGFloat cornerRadius;

-(void)makeCornerPos:(UIRectCorner)cPos cornerRadius:(CGFloat)cornerRadius;

-(void)makeCornerLine:(UIRectCorner)cPos
         cornerRadius:(CGFloat)cornerRadius
            lineWidth:(CGFloat)lineWidth
            lineColor:(CGColorRef)lineColor;

- (UIViewController *)currentVC ;


- (CAShapeLayer *)drawDashedLineFromPoint:(CGPoint)fromPoint
                                  toPoint:(CGPoint)toPoint
                              lineCgColor:(CGColorRef)lineCgColor
                              linePattern:(NSArray<NSNumber *> *)linePattern
                                lineWidth:(CGFloat)lineWidth;

@end

NS_ASSUME_NONNULL_END
